package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.Data;


/**
 * @author KING
 * @ClassName: com.qf.entity.Member
 * @Description: 该类的功能描述
 * @date: 2021/10/25 22:06
 */


@Data
@TableName(value = "ums_member")
public class Member {
    /**
     * 用户表id
     */
    @TableId(value = "uid",type = IdType.ASSIGN_ID)
    private Long uid;

    /**
     * 用户昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 用户姓名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 用户密码
     */
    @TableField(value = "`password`")
    private String password;

    @TableField(value = "`salt`")
    private String salt;

    /**
     * 用户头像
     */
    @TableField(value = "photo")
    private String photo;

    /**
     * 性别：0 未知， 1男， 1 女
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 用户手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 用户邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 0 普通用户，1 VIP用户，2 高级VIP用户
     */
    @TableField(value = "user_level")
    private Integer userLevel;

    /**
     * 0 禁用, 1 可用, 2 注销
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "add_time")
    private Date addTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableField(value = "deleted")
    private Boolean deleted;

    public static final String COL_UID = "uid";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";

    public static final String COL_PHOTO = "photo";

    public static final String COL_GENDER = "gender";

    public static final String COL_PHONE = "phone";

    public static final String COL_EMAIL = "email";

    public static final String COL_USER_LEVEL = "user_level";

    public static final String COL_STATUS = "status";

    public static final String COL_ADD_TIME = "add_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DELETED = "deleted";
}